@import "../config.scss";

.login-warrper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: url("@/assets/login.jpg") center no-repeat;
  background-size: cover;

  $header_height: 64px;
  $phone_header_height: 32px;
  $footer_height: 100px;
  $phone_footer_height: 32px;
  $info: rgba(0, 0, 0, 0.1);

  .header-warrper {
    width: 100%;
    height: $header_height;
    background-color: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0px -2px 10px $info;
    transition: all 0.4s;

    @include respond-to("phone") {
      height: $phone_header_height;
    }
  }

  .main-warrper {
    width: 100%;
    height: calc(100% - $header_height - $footer_height);
    transition: all 0.4s;
    background-color: transparent;

    @include respond-to("phone") {
      height: calc(100% - $phone_header_height - $phone_footer_height);
    }
  }

  .footer-warrper {
    width: 100%;
    height: $footer_height;
    background-color: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0px 2px 10px $info;
    transition: all 0.4s;

    @include respond-to("phone") {
      height: $phone_footer_height;
    }
  }
}

.login-warrper .main-warrper {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 24px;

  .left-card {
    width: 600px;
    padding: 24px;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
    transition:
      width 0.4s,
      padding 0.4s,
      opacity 0.2s;

    @include respond-to("notebook") {
      width: 0px;
      padding: 24px 0px;
      opacity: 0;
    }

    @include respond-to("pad") {
      width: 0px;
      padding: 0px;
      opacity: 0;
    }

    @include respond-to("phone") {
      width: 0px;
      padding: 0px;
      opacity: 0;
    }

    .titie {
      width: 100%;
      color: rgb(24, 24, 24);
      line-height: 1.5;
      font-size: 32px;
      font-weight: 600;
      margin-bottom: 24px;
      margin-left: 16px;
      white-space: nowrap;
    }
  }

  .right-card {
    width: auto;
    height: 400px;
    display: flex;
    justify-content: center;
    background-color: #fff;
    margin-top: 80px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 20px;

    .info-card {
      width: 320px;
      padding: 24px;
      background: url("@/assets/info-bg.png") center no-repeat;
      background-size: cover;
      transition:
        width 0.4s,
        padding 0.4s,
        opacity 0.2s;

      @include respond-to("pad") {
        width: 0px;
        padding: 0px;
        opacity: 0;
      }

      @include respond-to("phone") {
        width: 0px;
        padding: 0px;
        opacity: 0;
      }
    }

    .form-card {
      width: 320px;
      padding: 24px;
      user-select: none;
    }
  }
}

.login-warrper .main-warrper .right-card .form-card .ant-form {
  width: 100%;
  height: auto;
  padding: 24px 0px;

  .ant-form-item {
    .ant-form-item-control-input {
      .ant-input-affix-wrapper {
        border-radius: 0px;
        border-width: 0px;
        border-bottom-width: 1px;

        &:focus-within {
          box-shadow: none;
        }

        .ant-input {
          padding-left: 4px;
        }
      }

      .ant-btn {
        border-radius: 0px;
      }
    }
  }
}
